﻿<%@ Page Language="C#" MasterPageFile="~/aspnet/admin/ForValidation.master" AutoEventWireup="true" CodeFile="CX_Column_HankAdd.aspx.cs" Inherits="aspnet_admin_bock_Column_CX_Column_HankAdd" Title="Untitled Page" %>
<%@ Register Assembly="web表单验证控件" Namespace="CheckForm" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<!--loading 代码-->
<div id="LoadingDiv" style="display:none;">
      <div>
        <div  style="color: #FFFF00; text-align:center;">
        <img src="~/aspnet/admin/images/loading.gif" alt="正在添加 请稍等......" width="18" height="18" align="middle" id="IMG1" runat="server" /> <span class="STYLE5">
            正在添加 请稍等......</span></div>
      </div>
      
      <div style=" text-align:center;">
            
      </div>
      
    </div>
<!--loading 结束-->
    &nbsp;<table align="center" border="0" cellpadding="2" cellspacing="1" class="border"
        height="116" width="100%">
        <tr>
            <td align="center" class="topbg" colspan="2" style="height: 30px">
                <strong>栏目管理</strong></td>
        </tr>
        <tr>
            <td class="tdbg" style="width: 223px; height: 27px">
                提示信息:</td>
            <td class="tdbg" style="width: 787px; height: 27px">
                <asp:Label ID="tt" runat="server" CssClass="font-4"></asp:Label></td>
        </tr>
    </table>
    <br />
    <table align="center" border="0" cellpadding="2" cellspacing="1" class="border"
        height="116" width="100%">
        <tr align="center">
            <td class="topbg" colspan="3" style="height: 30px">
                <strong>批量添加栏目</strong></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px" width="223">
                添加栏目的父栏目ID:</td>
            <td class="tdbg" style="height: 27px" colspan="2">
                &nbsp;<cc1:formvalidation id="ColumnDid" runat="server" cssclass="alpha" datatype="Require"
                    msgx="请填写栏目名" width="474px" 是否验试="不验试"></cc1:formvalidation>为空则为一级栏目 &nbsp;&nbsp;
                <a href="CX_Column_Show.aspx?action=show" target="_blank" class="link2">选定i添加栏目</a></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px">
                添加栏目的ＸＭＬ文件:</td>
            <td class="tdbg" style="height: 27px">
                <label>
                    &nbsp;<cc1:FormValidation ID="XmlFileCont" runat="server" CssClass="box" datatype="Require"
                        Height="401px" TextMode="MultiLine" Width="474px" Text="请添加XML数据" 是否验试="验试"> </cc1:FormValidation>
                    <div  runat="server" id="Div">
                    </div>
                </label><div onclick ="XmlDocument.style.display='compact';" style="cursor:pointer;">

   显示示例ＸＭＬ
   </div>
 <div id="XmlDocument" style="display:none;">
 
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br/>
&lt;AddColumns&gt;<br/>
  &lt;Column Name=&quot;添加栏目1&quot; Lx=&quot;0&quot;  dir=&quot;&quot; pic=&quot; 栏目图片&quot; ItempAdderss=&quot;/sina/soso/aspx.aspx&quot; itempParam=&quot;&quot;   TabName=&quot;&quot; Cont=&quot; 'djflksjdlfjl 分 &amp;amp;  1 ==&amp;quot;&quot;&gt;<br/>
  &lt;/Column&gt;<br/>

  &lt;Column Name=&quot;添加栏目二&quot; Lx=&quot;1&quot;  dir=&quot;&quot; pic=&quot; 栏目图片&quot; ItempAdderss=&quot;/sina/soso/aspx.aspx&quot; itempParam=&quot;?ss=0&quot;   TabName=&quot;&quot; Cont=&quot;这个是按要求改的&quot;&gt;<br/>
  &lt;/Column&gt;<br/>

&lt;/AddColumns&gt;<br/>
 </div>
            </td>
            <td class="tdbg" style="height: 27px">
            </td>
        </tr>
        <tr>
            <td class="tdbg" height="27">
                添加方式:&nbsp;
            </td>
            <td class="tdbg" height="27">
                同时为类型为新闻栏目的栏目添加对应新闻分类<asp:CheckBox ID="CheckBox1" runat="server" Checked="True" />
            </td>
            <td class="tdbg" height="27">
            </td>
        </tr>
        <tr>
            <td class="tdbg" height="27">
                新闻显示页面模板地址:</td>
            <td class="tdbg" height="27">
                <cc1:formvalidation id="Newsitemplate" runat="server" cssclass="alpha" datatype="Require"
                    width="474px" 是否验试="验试" MaxLength="300">/aspnet/testPargrameDir/site/newsShow.aspx</cc1:formvalidation>
                (*)使用绝对路径</td>
            <td class="tdbg" height="27">
            </td>
        </tr>
        <tr>
            <td class="tdbg" colspan="2" height="27">
                <center>
                    <asp:Button ID="Button1" runat="server" Text="确定添加" OnClick="Button1_Click" /></center>
            </td>
            <td class="tdbg" height="27">
            </td>
        </tr>
        <tr>
            <td class="topbg" style="height: 27px" colspan="2">
            </td>
            <td class="tdbg" style="height: 27px">
            </td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px">
                输入用" , " 分开的栏目名：</td>
            <td class="tdbg" style="height: 27px">
                <cc1:FormValidation ID="CX_ColumnSNames" runat="server" Width="495px" Height="57px" TextMode="MultiLine"></cc1:FormValidation></td>
            <td class="tdbg" style="height: 27px">
            </td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px">
                输入添加栏目的类型</td>
            <td class="tdbg" style="height: 27px">
                &nbsp;<cc1:FormValidation ID="ColumnLX" runat="server" CssClass="alpha" datatype="Double"
                    MaxLength="1" Width="17px" 是否验试="验试">0</cc1:FormValidation>
                &nbsp; （0一般栏目，1新闻栏目，2其它栏目，3系统栏目） &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp;</td>
            <td class="tdbg" style="height: 27px">
            </td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px">
                &nbsp;输入栏目的页面模板地址：</td>
            <td class="tdbg" style="height: 27px">
                <cc1:FormValidation ID="ColnumsItemp" runat="server" CssClass="alpha" datatype="Require"
                    Width="474px" 是否验试="验试" MaxLength="300">/</cc1:FormValidation>(*)使用绝对路径</td>
            <td class="tdbg" style="height: 27px">
            </td>
        </tr>
        <tr>
            <td class="tdbg" colspan="2" height="27" align="center">

                <asp:Button ID="Button2"   OnClick="LinkButton1_Click" CssClass="box" runat="server" Text="转换为添加XML" /></td>
            <td class="tdbg" colspan="1" height="27">
            </td>
        </tr>
    </table>

<script language="javascript" type="text/javascript" >
function loadinxxxx()
{
    if(document.getElementById("<%=XmlFileCont.ClientID %>").value!="")
    {
         document.getElementById("LoadingDiv").style.display="compact";
        //document.getElementById("<%=tt.ClientID %>").innerText = "正在处理您的请求,请稍等...";
        switchBar('');
        sADiv('');//出来一个层把有有东东都盖住;
    }
}
switchBar('');
switchBar('');
</script>

</asp:Content>




